﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class HUYHOADON : BusinessObject
    {
        public Guid HuyHoaDon { get; set; }
        public Guid MaHoaDon { get; set; }
        public string SoHoaDon { get; set; }
        public string LyDoHuy { get; set; }
        public DateTime? NgayHuy { get; set; }
        public int? NguoiHuy { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }

        public HUYHOADON()
        {
            AddRule(new ValidateRequired("MaHoaDon"));
            AddRule(new ValidateRequired("SoHoaDon"));
        }


        public HUYHOADON(Guid huyHoaDon, Guid maHoaDon, string soHoaDon, string lyDoHuy, DateTime? ngayHuy, int? nguoiHuy, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            HuyHoaDon = huyHoaDon;
            MaHoaDon = maHoaDon;
            SoHoaDon = soHoaDon;
            LyDoHuy = lyDoHuy;
            NgayHuy = ngayHuy;
            NguoiHuy = nguoiHuy;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
